//
//  VedioMianViewController.swift
//  MyTest
//
//  Created by guanzhongwang on 2021/5/8.
//

import UIKit

class VedioMianViewController: CommonViewController{

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        let searchView = MainNavSearchView()
        view.addSubview(searchView)
        searchView.snp.makeConstraints({
            $0.top.equalTo(0)
            $0.height.equalTo(navigationBarHeight)
            $0.left.right.equalTo(0)
        })
    }
    
    override var preferredStatusBarStyle: UIStatusBarStyle{
        return .lightContent
    }
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.setNavigationBarHidden(true, animated: false)
    }
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        self.navigationController?.setNavigationBarHidden(false, animated: true)
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
